function star(item,values) {
    var temp = "";
    for (var i = 0; i < values; i++) {
        temp += '<i class="fa fa-star"></i>'
    }
    for (var i = 0; i < 5 - values; i++) {
        temp += '<i class="fa fa-star-o"></i>'
    }
    $(item).html(temp);
}
function checkLogin() {
    $(document).dialog({
        type : 'confirm',
        closeBtnShow: true,
        content: "关注功能需要登录,是否马上登录?<br/>5秒中后自动跳转到登陆页面,可点击取消...",
        autoClose:5000,
        overlayShow:true,
        buttonStyle:"stacked",
        buttonTextConfirm:"确定",
        buttonTextCancel:"取消",
        onClickConfirmBtn:function () {
            window.parent.location.href = "/login.html";
        }
    });
}
